package com.czz.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.czz.manage.entity.CourseConsult;
import com.czz.manage.query.ConsultQuery;
import com.czz.manage.vo.ChartVo;
import com.czz.manage.vo.ConsultVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: CourseConsultMapper
 * @Author Czz
 * @Date 2020/2/19
 * @Time 10:28
 **/
@Repository
public interface CourseConsultMapper extends BaseMapper<CourseConsult> {
    Integer countTeacherConsult(String id);
    List<ChartVo> getTeacherConsultWeek(String id);
    List<ConsultVo> getConsultPageList(Page<ConsultVo> pageParam, String id, @Param("query") ConsultQuery consultQuery);
    List<ChartVo> getTeacherConsultDaily(String teacherId, String begin, String end);
}
